﻿<?xml version="1.0" encoding="utf-8" ?>
<Rules FriendlyName="Scopes">
  <Rule>
    <TypeName>SpCop.General.Scopes.RespectElementScopes</TypeName>
    <Name>Respect element scopes</Name>
    <CheckId>WSP0041</CheckId>
    <Category>Scopes</Category>
    <Resolution Name="WrongScope">The element of type {0} in feature {1} should be set to another scope.</Resolution>
    <MessageLevel Certainty="95">CriticalError</MessageLevel>
    <FixCategories>Breaking</FixCategories>
    <ProductVersion>SharePoint2007, SharePoint2010</ProductVersion>
  </Rule>
  <Rule>
    <TypeName>SpCop.General.Scopes.DoNotActivateFarmOrWebApplicationFeaturesAutomatically</TypeName>
    <Name>Do not auto ActivateFarm or WebApplication features</Name>
    <LongDescription>Do not auto ActivateFarm or WebApplication features, on shared environments this would cause the features to be activated on any newly created web application which can have undesired consequences and introduce extra steps to mainitain the environment later.</LongDescription>
    <CheckId>WSP0042</CheckId>
    <Category>Scopes</Category>
    <Resolution Name="AutoActivateInCentralAdmin">The feature '{0}' is set to scope : {1} and should have the AutoActivateInCentralAdmin attribute set to false.</Resolution>
    <Resolution Name="AutoActivateInCentralAdminTrue">The feature '{0}' is set to scope : {1} and should not have the AutoActivateInCentralAdmin attribute set to true.</Resolution>
    <Resolution Name="AutoActivateOnDefault">The feature '{0}' is set to scope : {1} and should have the AutoActivateOnDefault attribute set to false.</Resolution>
    <Resolution Name="AutoActivateOnDefaultTrue">The feature '{0}' is set to scope : {1} and should not have the AutoActivateOnDefault attribute set to true.</Resolution>
    <MessageLevel Certainty="95">CriticalError</MessageLevel>
    <FixCategories>Breaking</FixCategories>
    <ProductVersion>SharePoint2007, SharePoint2010</ProductVersion>
  </Rule>
 
</Rules>
